/**
 * BindLoading
 * @废弃
 * @authors 杨兴洲（of2502）
 * @date    2017/5/23 0023 19:58
 * @version 1.0
 * @last-modify  杨兴洲（of2502）
 */

import React, {Component} from 'react';
import {Map} from 'immutable';
import {Relax} from 'iflux2';

@Relax
class BindLoading extends Component {

    static defaultProps = {
        userInfo: Map()
    };

    componentDidMount() {
        if (this.props.userInfo.get("appid")) {
            location.href = "?/#/weixin/dashboard"
        } else {
            location.href = "?/#/weixin/bind"
        }
    }

    render() {
        return (
            <div className="Bind-Loading">
                ...............
            </div>
        )
    }
}

export default BindLoading;